<?php
//功能：根据用户输入的Email跳转到相应的电子邮箱首页
function gotomail($mail){
    $t = explode('@',$mail);
    $t = strtolower($t[1]);
    if($t == '163.com'){
        return 'https://mail.163.com';
    }else if($t == 'vip.163.com'){
        return 'http://vip.163.com';
    }else if($t == '126.com'){
        return 'https://mail.126.com';
    }else if($t == 'qq.com' || $t == 'vip.qq.com' || $t == 'foxmail.com'){
        return 'https://mail.qq.com';
    }else if($t == 'gmail.com'){
        return 'https://mail.google.com';
    }else if($t == 'sohu.com'){
        return 'https://mail.sohu.com';
    }else if($t == 'tom.com'){
        return 'https://mail.tom.com';
    }else if($t == 'vip.sina.com'){
        return 'https://vip.sina.com.cn';
    }else if($t == 'sina.com.cn' || $t == 'sina.com'){
        return 'https://mail.sina.com.cn';
    }else if($t == 'yahoo.com.cn' || $t == 'yahoo.cn'){
        return 'https://mail.cn.yahoo.com';
    }else if($t == 'yahoo.com'){
    	return 'https://login.yahoo.com';
    }else if($t == 'yeah.net'){
        return 'http://www.yeah.net';
    }else if($t == '21cn.com'){
        return 'https://mail.21cn.com';
    }else if($t == 'hotmail.com' || $t == 'outlook.com'){
        return 'https://outlook.live.com';
    }else if($t == 'sogou.com'){
        return 'https://mail.sogou.com';
    }else if($t == '188.com'){
        return 'http://www.188.com';
    }else if($t == '139.com'){
        return 'https://mail.10086.cn';
    }else if($t == '189.cn'){
        //return 'webmail15.189.cn/webmail';
        return 'https://webmail30.189.cn';
    }else if($t == 'wo.com.cn'){
        return 'https://mail.wo.com.cn/smsmail';
    }else if($t == 'wo.cn'){
        return 'https://mail.wo.cn/mail/login.action';
    }else if($t == 'aliyun.com'){
    	return 'https://mail.aliyun.com';
    }else {
        return '';
    }
}

